<?php
	include("connection.php");
	if(isset($_POST['uname']) && isset($_POST['pwd']))
	{	
		$UserName=$_POST['uname'];
		$Password=md5($_POST['pwd']);
		$sql1="select * from admin_user where email_id='".$UserName."' and password='".$Password."'";
		$result=mysql_query($sql1,$con);
		while($row=mysql_fetch_array($result)){
			
			echo $row['status'];
			session_start();
			$_SESSION['admin_id']=$row['status'];
		}
	
		mysql_close();
	}
?>